package com.lt.contract.service.impl;

import com.lt.contract.dao.NmMongoliaCircuitSharingDao;
import com.lt.contract.entity.NmMongoliaCircuitSharing;
import com.lt.contract.service.NmMongoliaCircuitSharingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 国内电路分摊收入(NmMongoliaCircuitSharing)表服务实现类
 *
 * @author makejava
 * @since 2020-02-15 21:44:54
 */
@Service("nmMongoliaCircuitSharingService")
public class NmMongoliaCircuitSharingServiceImpl implements NmMongoliaCircuitSharingService {
    @Resource
    private NmMongoliaCircuitSharingDao nmMongoliaCircuitSharingDao;

    /**
     * 通过实体作为筛选条件查询
     *
     * @param nmMongoliaCircuitSharing 实例对象
     * @return 对象列表
     */
    @Override
    public List<NmMongoliaCircuitSharing> queryAll(Map<String, Object> map) throws Exception {
        return nmMongoliaCircuitSharingDao.queryAll(map);
    }
    @Override
    public Long queryAllCount(Map<String, Object> map) throws Exception {
        return nmMongoliaCircuitSharingDao.queryAllCount(map);
    }


    /**
     * 新增数据
     *
     * @param nmMongoliaCircuitSharing 实例对象
     * @return 实例对象
     */
    @Override
    public NmMongoliaCircuitSharing insert(NmMongoliaCircuitSharing nmMongoliaCircuitSharing) {
        this.nmMongoliaCircuitSharingDao.insert(nmMongoliaCircuitSharing);
        return nmMongoliaCircuitSharing;
    }


}
